// 引用网络请求中间件
import request from '../../utils/request.js';

export default {
	searchType({
		content,
		type
	}) {
		console.log(content);
		console.log(type);
		return request({
			url: `/search/searchs?content=${content}&type=${type}`,
			method: 'GET',
		})
	},
	searchHistory() {
		return request({
			url: `/search/searchhistory`,
			method: 'GET',
		})
	},
	deleteSearchHistory() {
		return request({
			url: `/search/delhistory`,
			method: 'GET',
		})
	},
}